﻿using System;
using System.IO;
using MediaReader;

namespace MediaFactory {
    public class VideoFactory : MediaFactory
    {

        private readonly I_MediaReader mediaReader;

        public VideoFactory()
        {
            this.mediaReader = new VideoReader();
        }

        public override Media CreateMedia(string path)
        {
            int size = this.mediaReader.readMedia(path);
            return new Video()
            {
                Path = path,
                Size = size
            };
        }
    }
}
